package org.dg.iag.entity;

import java.io.Serializable;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("Log")
public class Log implements Serializable{
	/**
	 * currentTimeMillis, tag, url, null, r
	 */
	private Long id ;
	private Long timeMillis;
	private String feedTag;
	private String url;
	private String timestamp;
	private String localUrl;
	//if the log
	private String description;
	
	private boolean zipped		= false;
	private boolean standard	= false;
	
	
	//1 = ok
	//0 = not ok
	private Integer importStatus;
	
	public Integer getImportStatus() {
		return importStatus;
	}
	public void setImportStatus(Integer importStatus) {
		this.importStatus = importStatus;
	}

	public Log(){
		
	}
	
	public Log(Long timeMillis, String feedTag, String url, String timestamp,
			String localUrl, Integer importStatus) {
		super();
		this.timeMillis = timeMillis;
		this.feedTag = feedTag;
		this.url = url;
		this.timestamp = timestamp;
		this.localUrl = localUrl;
		this.importStatus = importStatus;
	}
	public Log(Long timeMillis, String feedTag, String url, String timestamp,
			String localUrl, String description, Integer importStatus) {
		super();
		this.timeMillis = timeMillis;
		this.feedTag = feedTag;
		this.url = url;
		this.timestamp = timestamp;
		this.localUrl = localUrl;
		this.description = description;
		this.importStatus = importStatus;
	}
	public Log(Long timeMillis, String feedTag, String url, String timestamp,
			String localUrl, String description) {
		super();
		this.timeMillis = timeMillis;
		this.feedTag = feedTag;
		this.url = url;
		this.timestamp = timestamp;
		this.localUrl = localUrl;
		this.description = description;
	}
	
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Long getTimeMillis() {
		return timeMillis;
	}
	public void setTimeMillis(Long timeMillis) {
		this.timeMillis = timeMillis;
	}
	public String getFeedTag() {
		return feedTag;
	}
	public void setFeedTag(String feedTag) {
		this.feedTag = feedTag;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	

	/**
	 * @return the timestamp
	 */
	public String getTimestamp() {
		return timestamp;
	}
	/**
	 * @param timestamp the timestamp to set
	 */
	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}
	/**
	 * @return the localUrl
	 */
	public String getLocalUrl() {
		return localUrl;
	}
	/**
	 * @param localUrl the localUrl to set
	 */
	public void setLocalUrl(String localUrl) {
		this.localUrl = localUrl;
	}
	
	/**
	 * @return the zipped
	 */
	public boolean getZipped() {
		return zipped;
	}
	/**
	 * @param zipped the zipped to set
	 */
	public void setZipped(boolean zipped) {
		this.zipped = zipped;
	}
	/**
	 * @return the standard
	 */
	public boolean getStandard() {
		return standard;
	}
	/**
	 * @param standard the standard to set
	 */
	public void setStandard(boolean standard) {
		this.standard = standard;
	}
	public Log(Long timeMillis, String feedTag, String url, String timestamp) {
		super();
		this.timeMillis = timeMillis;
		this.feedTag = feedTag;
		this.url = url;
		this.timestamp = timestamp;
	}
	public Log(Long timeMillis, String feedTag, String url, String timestamp, String localUrl) {
		super();
		this.timeMillis = timeMillis;
		this.feedTag = feedTag;
		this.url = url;
		this.timestamp = timestamp;
		this.localUrl = localUrl;
	}
	
	
	
	
}
